<template>
  <div class="button_bar" v-if="btnList.length > 0">
    <el-button
      :type="item.id == 0 ? 'default' : 'primary'"
      v-for="item in btnList"
      :key="item.id"
      >{{ item.title }}</el-button
    >
  </div>
</template>
<script>
export default {
  props: {
    btnList: {
      type: Array,
      default: () => {
        return {}
      },
    },
  },
}
</script>